@extends('home.userinfo.user_layout')
@section('title',$title)
@section('content')
<div id="container">
    <div class="w">
    	<div id="content">
    		<input type="hidden" id="whereFrom" value="">
	        <div id="sub">
	      		<div id="menu">	
	      		<dl class="fore1">		
	      		<dt id="_MYJD_setting">设置</dt>		
	      		<dd class="fore1_1" id="_MYJD_info">			
	      		<a clstag="homepage|keycount|home2013|Homeyser" href="/user" target="_self">个人信息</a>		
	      		</dd>		
	      		<dd class="fore1_2" id="_MYJD_safe">			
	      		<a clstag="homepage|keycount|home2013|Homesafe" href="#" target="_self">账户安全</a>		
	      		</dd>		
	      		<dd class="fore1_3" id="_MYJD_accbinde">			
	      		<a clstag="homepage|keycount|home2013|Homezhbd" href="#" target="_self">账号绑定</a>		
	      		</dd>		
				<dd class="fore1_5 curr" id="_MYJD_comments">	
					<a clstag="homepage|keycount|home2013|Homegrade" href="/dingdan" target="_self">我的订单</a>
				</dd>
	      		<dd>			
	      		<a clstag="homepage|keycount|home2013|homeadd" href="/address" target="_self">收货地址</a>		
	      		</dd>	
	      		</dl>
	      		</div>
	      		<div id="menu-ads">
			
			<!--广告-->
				<div>
			<!-- 	<a href="#" target="_blank"><img width="90" height="70" alt="" app="image:poster" src="{{asset('/public/home/img/gg1.gif')}}">
				</a> -->

				</div>

				<div>
				<!-- <a href="#" target="_blank"><img width="90" height="70" alt="" app="image:poster" src="{{asset('/public/home/img/gg2.jpeg')}}"></a> -->
				</div>

				</div>
	        </div> 

		<div id="main">
            <!-- <div id="addressList" class="mod-main mod-comm">              -->
				<div class="mt">
					<div class="order_list_top" style="background: #fa8072;
				    width: 850px;
				    height: 40px;
				    border-bottom: 1px solid #ddd;
				    line-height: 40px;
				    font-size: 12px;
				    color: #e4393c;">
						<a class="all_order" href="javascript:" style="background: rgb(228, 57, 60);
					    float: left;
					    width: 80px;
					    height: 40px;
					    color: #fff;
					    text-align: center;">订单商品评价</a>
					    <a class="all_order" href="/dingdan" style="background: rgb(228, 57, 60);
					    float: right;
					    width: 80px;
					    height: 40px;
					    color: #fff;
					    text-align: center;">返回我的订单</a>
					</div>
					</div>
					
					<div class="order_list_nav" style="    background: #f7f7f7;
				    width: 850px;
				    height: 30px;
				    border-bottom: 1px solid #ddd;
				    line-height: 30px;">
						<ul style="list-style: none;">
							<li style="float: left;
						    width: 115px;
						    height: 30px;
						    border-left: 1px solid #ddd;
						    line-height: 30px;
						    text-align: center;
						    color: #666;">商品信息</li>
							<li style="float: left;
							width:150px;height: 30px;
						    border-left: 1px solid #ddd;
						    line-height: 30px;
						    text-align: center;
						    color: #666">评论状态</li>
						</ul>
					</div>
					@foreach($data as $d)
					<div class="order_list_details all_order_list" style="width: 850px;
				    height: 50px;
				    border-bottom: 1px solid #ddd;
				    line-height: 50px;
				    background: #fff;">
						<ul style="list-style: none;">
							<li style="float: left;
						    width: 115px;
						    height: 50px;
						    line-height: 50px;
						    text-align: center;
						    color: #666;">{{$d -> goodsname}}</li>
							<li style="width:150px;line-height:50px;float: left;
							height: 50px;
							text-align: center;
						    color: #666;margin-left:15px;">
						    	@if($d -> comment_status == 0)
							    <a  id="new_address" class="review_btn" href="/comment/{{$d -> goods_id}}" style="display:block;margin-top:10px;">评价</a>
								@elseif($d -> comment_status == 1)
								<span>已评价</span>| <a id="new_address" class="review_btn" href="/comment/{{$d -> goods_id}}"><span>追评</span></a>
								@endif
							</li>
						</ul>
					</div>

	@endforeach							


@endsection